package graphes;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public abstract class Noeud implements Serializable{
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	protected int numero;
	protected List<Arc> listeArcsSortant;
	public Noeud(){
		listeArcsSortant=new ArrayList<Arc>();
	}
	public int getNumero() {
		return numero;
	}
	public void AjoutArcSortant(Arc arc){
		listeArcsSortant.add(arc);
	}
	public List<Arc> getListeArcsSortant() {
		return listeArcsSortant;
	}
	public void setNumero(int numero) {
		this.numero = numero;
	}
	public String toString(){
		return ""+numero;
	}
	
}
